from django.urls import path, re_path
from . import views

urlpatterns = [
    # 群查课程
    path('free', views.FreeCourseListAPIView.as_view()),
    # 单查课程
    re_path(r'^free/(?P<pk>\d+)$', views.FreeCourseRetrieveAPIView.as_view()),
    # 群查分类
    path('category', views.CategoryListAPIView.as_view()),
    # 群查章节
    path('chapters', views.ChapterListAPIView.as_view()),
]
